<h1><%= @user.get_name %>: <%= t(:edit_off) %></h1>

<%= error_messages_for :off %>
<% form_for [:admin, @user, @off] do |f| -%>
  
<p><%= label_tag t(:off_date) %><br/>
<%= f.text_field :off_date %></p> 

<p><%= label_tag t(:off_hours) %><br/>
<%= f.text_field :hours %></p> 

<p><%= label_tag t(:notes) %><br/>
<%= f.text_area :notes %></p> 

<p><%= submit_tag t(:update_off) %></p>
<% end -%>

<p class="back"><%= link_to t(:back), admin_user_offs_path(@user) %></p>
